package com.zhanghe.study.model;

import java.io.Serializable;

/**
 * @author zh
 * @date 2021/8/19 11:48
 */
public class Dept implements Serializable {
    private long deptNo;
    private String dName;

    // 来自于哪个数据库，一个服务对应一个数据库，同一信息被存储到不同的数据库
    private String dbSource;

    public long getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(long deptNo) {
        this.deptNo = deptNo;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getDbSource() {
        return dbSource;
    }

    public void setDbSource(String dbSource) {
        this.dbSource = dbSource;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptNo=" + deptNo +
                ", dName='" + dName + '\'' +
                ", dbSource='" + dbSource + '\'' +
                '}';
    }
}
